package com.black.order.exception;

import com.black.common.R;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * @Author: Young
 * @CreateTime: 2025-08-06
 * @Description: 全局异常处理类   @RestControllerAdvice = @ControllerAdvice + @ResponseBody
 * @Version: 1.0
 */
@RestControllerAdvice
public class GlobalExceptionHandler {

//    @ExceptionHandler(value = Exception.class)
//    public R exceptionHandler(Exception e) {
//        return R.error(e.getMessage());
//    }

}
